Measurement of functional capacity